<?php

// Report all PHP errors (see changelog)
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
/* Create paths */
$doc_path = getcwd();

/*
 * Change directory to the app directory where the code dir is found.
 */
// chdir('..');

$base_path = getcwd();

/*
 * Global defined document paths
 * APP_PATH
 * SYS_PATH 
 * DOC_PATH
 * CODE_PATH
 * BASE_PATH
 */

define('EXT', '.php');
define('DOC_PATH', $doc_path . '/');
define('BASE_PATH', $base_path . '/');
define('CODE_PATH', $base_path.'/code/');
define('APP_PATH', $base_path . '/code/application/');
define('SYS_PATH', $base_path . '/code/xiecx/');


define('base_controller', 'base_controller');
define('base_function', 'show_page');

require SYS_PATH.'core_loader'.EXT;

die('Done without an error!');
?>